package com.ruoyi.web.controller.system;

import com.ruoyi.system.domain.DUser;
import com.ruoyi.system.service.IDUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * author: 核桃
 * date: 2023/10/29
 **/
@RestController
@RequestMapping("/user")
public class DUserController {

    @Autowired
    private IDUserService dUserService;

    @GetMapping("/list")
    public List<DUser> selectAllUser() {
        return dUserService.selectAllUser();
    }
}
